#ifndef _FM_API_H_
#define _FM_API_H_


#ifdef __C51__

#include "typedef.h"
#include "disp.h"
#include "fm_rev.h"

#include "rda5807.h"
#include "bk1080.h"
#include "CL6017.h"
#include "qn8035.h"
#include "KT0830EG.h"

void get_channl(u8 flag);
u8 init_fm_rev(void);
//bool set_fre(u16 fre, u8 mode);
void fm_rev_powerdown(void);
u8 set_fre(u8 mode);
void detect_fm_receive(void);
//void fm_mute(bit flag);
void fm_module_mute(u8 flag);

enum
{
	RDA5807,
	CL6017G,
	BK1080,
	KT0830,
	QN8035
};
#endif

#define FM_CUR_FRE          0
#define FM_FRE_DEC          1
#define FM_FRE_INC			2
#endif